home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / CW GUSI 1.6.4 / src / GUSI.r < prev    next >
Text File  |  1994-12-30  |  4KB  |  147 lines

  1. /*********************************************************************
  2. Project    :    GUSI                -    Grand Unified Socket Interface
  3. File        :    GUSI.r            -    Include this
  4. Author    :    Matthias Neeracher
  5. Language    :    MPW Rez 3.0
  6.  
  7. $Log: GUSI.r,v $
  8. Revision 1.3  1994/12/30  19:33:34  neeri
  9. Enlargened message box for select folder dialog.
  10.  
  11. Revision 1.2  1994/08/10  00:34:18  neeri
  12. Sanitized for universal headers.
  13.  
  14. Revision 1.1  1994/02/25  02:12:04  neeri
  15. Initial revision
  16.  
  17. Revision 0.5  1993/05/21  00:00:00  neeri
  18. suffixes
  19.  
  20. Revision 0.4  1993/01/31  00:00:00  neeri
  21. Daemon
  22.  
  23. Revision 0.3  1993/01/03  00:00:00  neeri
  24. autoSpin
  25.  
  26. Revision 0.2  1992/09/24  00:00:00  neeri
  27. Don't include CKID, create GUSIRsrc_P.h
  28.  
  29. Revision 0.1  1992/07/13  00:00:00  neeri
  30. .rsrc
  31.  
  32. *********************************************************************/
  33.  
  34. #include "Types.r"
  35. #include "GUSIRsrc_P.h"
  36.  
  37. include "GUSI.rsrc" not 'ckid';
  38.  
  39. /* Define a resource ('GU∑I', GUSIRsrcID) to override GUSI defaults         
  40.     To avoid having to change the Rez file every time I introduce another
  41.     feature, the preprocessor variable GUSI_PREF_VERSION by default keeps
  42.     everything compatible with version 1.0.2. Just define GUSI_PREF_VERSION
  43.     to be the version you want to use.
  44. */
  45.  
  46. #ifndef GUSI_PREF_VERSION
  47. #define GUSI_PREF_VERSION '0102'
  48. #endif
  49.  
  50. type 'GU∑I' {
  51.     literal longint    text     =    'TEXT';    /* Type for creat'ed files                 */
  52.     literal longint    mpw    =    'MPS ';    /* Creator for creat'ed files              */
  53.     byte         noAutoSpin, autoSpin;        /* Automatically spin cursor ?            */
  54. #if GUSI_PREF_VERSION > '0102'
  55.     boolean     useChdir, dontUseChdir;        /* Use chdir() ?                            */
  56.     boolean    approxStat, accurateStat;    /* statbuf.st_nlink = # of subdirectories ? */
  57.     boolean    noTCPDaemon, isTCPDaemon;    /* Inetd client ?                            */
  58.     boolean    noUDPDaemon, isUDPDaemon;
  59. #if GUSI_PREF_VERSION >= '0150'
  60.     boolean    noConsole, hasConsole;        /* Are we providing our own dev:console ? */
  61.     fill         bit[3];
  62. #else
  63.     fill         bit[4];
  64. #endif
  65.     literal longint = GUSI_PREF_VERSION;
  66. #if GUSI_PREF_VERSION >= '0120'
  67.     integer = $$Countof(SuffixArray);
  68.     wide array SuffixArray {
  69.             literal longint;                    /* Suffix of file */
  70.             literal longint;                    /* Type for file */
  71.             literal longint;                    /* Creator for file */
  72.     };
  73. #endif
  74. #endif
  75. };
  76.  
  77. type 'TMPL' {
  78.     wide array {
  79.         pstring;
  80.         literal longint;
  81.     };
  82. };
  83.  
  84. resource 'TMPL' (GUSIRsrcID, "GU∑I") {
  85.     {
  86.         "Type of created files",        'TNAM',
  87.         "Creator of created files",    'TNAM',
  88.         "Automatically spin cursor",     'DBYT',
  89. #if GUSI_PREF_VERSION > '0102'
  90.         "Not using chdir()",                'BBIT',
  91.         "Accurate stat()",                'BBIT',
  92.         "TCP daemon",                        'BBIT',
  93.         "UDP daemon",                        'BBIT',
  94. #if GUSI_PREF_VERSION >= '0150'
  95.         "Own Console",                        'BBIT',
  96. #else
  97.         "Reserved",                            'BBIT',
  98. #endif
  99.         "Reserved",                            'BBIT',
  100.         "Reserved",                            'BBIT',
  101.         "Reserved",                            'BBIT',
  102.         "Version (don't change)",        'TNAM',        
  103. #if GUSI_PREF_VERSION >= '0120'
  104.         "NumSuffices",                        'OCNT',
  105.         "*****",                                'LSTC',
  106.         "Suffix",                            'TNAM',
  107.         "Type for suffix",                'TNAM',
  108.         "Creator for suffix",            'TNAM',
  109.         "*****",                                'LSTE',
  110. #endif
  111. #endif        
  112.     }
  113. };
  114.  
  115. resource 'DLOG' (GUSIRsrcID, "Get Directory") {
  116.     {0, 0, 217, 348}, 
  117.     dBoxProc, 
  118.     invisible, 
  119.     noGoAway, 
  120.     0x0, 
  121.     10240, 
  122.     "",
  123. #if SystemSevenOrLater
  124.     alertPositionMainScreen
  125. #endif
  126. };
  127.  
  128. resource 'DITL' (GUSIRsrcID, "Get Directory") {
  129.     {
  130.         { 142, 256,  160, 336},    Button        {enabled,"Open"},
  131.         {1152,  59, 1232,  77},    Button        {enabled,"Hidden"},
  132.         { 193, 256,  211, 336},    Button        {enabled,"Cancel"},
  133.         {  43, 232,   63, 347},    UserItem        {disabled},
  134.         {  72, 256,   90, 336},    Button        {enabled,"Eject"},
  135.         {  97, 256,  115, 336},    Button        {enabled,"Drive"},
  136.         {  43,  12,  189, 230},    UserItem        {enabled},
  137.         {  43, 229,  189, 246},    UserItem        {enabled},
  138.         { 128, 252,  129, 340},    UserItem        {disabled},
  139.         {1044,  20, 1145, 116},    StaticText    {disabled,""},
  140.         { 167, 256,  185, 336},    Button        {enabled,"Directory"},
  141.         {   0,  30,   18, 215},    Button        {enabled,"Select Current Directory:"},
  142.         { 200,  20, 1145, 222},    StaticText    {disabled,"Select a Folder"}
  143.     }
  144. };
  145.  
  146.  
  147.